home *** CD-ROM | disk | FTP | other *** search
- head 1.2;
- access;
- symbols
- VER_0_2:1.2;
- locks; strict;
- comment @# @;
-
-
- 1.2
- date 95.03.01.07.10.23; author coulter; state Exp;
- branches;
- next 1.1;
-
- 1.1
- date 95.02.19.09.10.40; author coulter; state Exp;
- branches;
- next ;
-
-
- desc
- @Script to show what logiso_copy would install.
- @
-
-
- 1.2
- log
- @Checkpoint files. Can now compress cd_files.
- @
- text
- @#! /bin/bash
- USAGE='USAGE: logiso_preview
- Get the iso log and print the files that would be installed.
- '
-
- # Process parameters
-
- if [ $# -ne 0 ]
- then
- echo "$USAGE" >&2
- echo "Too many arguments." >&2
- exit 1
- fi
-
- # Set variables
-
- ISOFS_UTIL_DIR="${ISOFS_UTIL_DIR:-/usr/src/linux/fs/isofs/Utils}"
-
- # Source in user definitions
- # MOUNT_PATH
- # MAP_TO_PATH
- # CD_FILE
-
- . "${ISOFS_UTIL_DIR}/config"
- export ISOFS_UTIL_DIR
-
- # Set up temp files
-
- INODE_LIST="/tmp/logisoina$$"
- INSTALL_LIST="/tmp/logisoinb$$"
- trap "rm -f $INODE_LIST $INSTALL_LIST" 0 1 2 3 15
-
- # Define standard functions
-
- . "$ISOFS_UTIL_DIR/ksh_fns"
-
- # Do it
-
- logiso_get "$MOUNT_PATH" | cut -f1 | sort -n | uniq > "$INODE_LIST"
-
- # If CD_FILES does not exist, create it.
-
- USE_GZIP="FALSE"
- if [ -f "${CD_FILES}.gz" -a ! -f "$CD_FILES" ]
- then
- USE_GZIP="TRUE"
- echo "Uncompressing $CD_FILES"
- gunzip "${CD_FILES}.gz"
- fi
- if [ ! -f "$CD_FILES" ]
- then
- echo "$CD_FILES does not exist."
- echo "Creating it will take a while."
- find "$MOUNT_PATH" 2> /dev/null | xargs ls -i -d 2> /dev/null \
- | sort -n > "$CD_FILES" 2> /dev/null
- check_return 0 1 "Error making $CD_FILE"
- echo "You should probably clear the log and try again." >&2
- exit 1
- fi
-
- echo "Comparing logged inodes against list in $CD_FILES"
- process_lists "$INODE_LIST" "$CD_FILES"
- if [ "$USE_GZIP" = "TRUE" ]
- then
- echo "Compressing $CD_FILES"
- gzip "${CD_FILES}"
- fi
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @d37 4
- d43 7
- d57 2
- a60 3
- # Do it
-
- logiso_get "$MOUNT_PATH" | cut -f1 | sort -n | uniq > "$INODE_LIST"
- d63 5
- @
-